package com.th.common.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 成功案例类型
 * </p>
 *
 * @author yangzihuang
 * @since 2022-05-18
 */
@Data
@TableName("metadata_type")
@ApiModel(value = "MetadataType", description = "成功案例类型")
public class MetadataType implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("名称")
    @NotBlank(message = "名称不能为空")
    private String name;

    @ApiModelProperty("封面")
    private String cover;

    @ApiModelProperty("排序号")
    @NotNull(message = "排序号不能空")
    private Integer orderNum;

    @ApiModelProperty("备注")
    private String description;
}
